﻿<phone:PhoneApplicationPage 
    x:Class="TripleTriad.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="UniformToFill" ImageSource="img/bgv.jpg"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="PageTitle" Text="menu" Margin="0" Style="{StaticResource PhoneTextTitle1Style}" TextAlignment="Center" FontSize="80" Foreground="White"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        	<Button Name="random_match" Content="Random Match" Height="80" Margin="57,8,57,0" VerticalAlignment="Top" Click="random_match_Click" BorderBrush="{x:Null}" Foreground="Black" >
        		<Button.Background>
        			<ImageBrush ImageSource="img/buttonbg.png"/>
        		</Button.Background>
        	</Button>
        	<Button Name="friends" Content="Friends" Height="80" Margin="57,96,57,0" VerticalAlignment="Top" Click="friends_Click" BorderBrush="{x:Null}" Foreground="Black" >
        		<Button.Background>
        			<ImageBrush Stretch="Fill" ImageSource="img/buttonbg.png"/>
        		</Button.Background>
        	</Button>
        	<Button Name="my_cards" Content="My Cards" Margin="57,184,57,0" Height="80" VerticalAlignment="Top" Click="my_cards_Click" BorderBrush="{x:Null}" Foreground="Black" >
        		<Button.Background>
        			<ImageBrush Stretch="Fill" ImageSource="img/buttonbg.png"/>
        		</Button.Background>
        	</Button>
        	<Button Name="market" Content="Market" Height="80" Margin="57,0,57,192" VerticalAlignment="Bottom" Click="market_Click" BorderBrush="{x:Null}" Foreground="Black" >
        		<Button.Background>
        			<ImageBrush Stretch="Fill" ImageSource="img/buttonbg.png"/>
        		</Button.Background>
        	</Button>
        	<Button Name="logout" Content="Logout" Height="80" Margin="57,0,57,106" VerticalAlignment="Bottom" Click="logout_Click" BorderBrush="{x:Null}" Foreground="Black">
        		<Button.Background>
        			<ImageBrush Stretch="Fill" ImageSource="img/buttonbg.png"/>
        		</Button.Background>
        	</Button>
        	<Button Name="rules" Content="Rules" Margin="57,284,57,291" Click="rules_Click" Height="80" BorderBrush="{x:Null}" Foreground="Black" >
        		<Button.Background>
        			<ImageBrush Stretch="Fill" ImageSource="img/buttonbg.png"/>
        		</Button.Background>
        	</Button>
        	<Button Name="info" Content="I" HorizontalAlignment="Left" Height="90" Margin="0,0,0,1" VerticalAlignment="Bottom" Width="90" Click="info_Click" BorderBrush="{x:Null}" >
        		<Button.Background>
        			<ImageBrush Stretch="UniformToFill" ImageSource="img/iconInfo.png"/>
        		</Button.Background>
        	</Button>
        	<Button Name="credits" Content="" Height="90" Margin="94,0,0,1" VerticalAlignment="Bottom" Click="credits_Click" BorderBrush="{x:Null}" HorizontalAlignment="Left" Width="90" RenderTransformOrigin="0.344,0.611" >
        		<Button.Background>
        			<ImageBrush Stretch="UniformToFill" ImageSource="img/iconrCredit.png"/>
        		</Button.Background>
        	</Button></Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>